<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">


<head th:replace="layouts::header">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.24/favicon.ico">
    <link rel="canonical" href="https://getbootstrap.com/docs/3.4/examples/jumbotron/">
    <title>Movies</title>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <a class="navbar-brand" href="/">Movies</a>
            <a class="navbar-brand" href="/actors">演员</a>
            <a class="navbar-brand" href="/directors">导演</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <form class="navbar-form navbar-right">
                <div class="form-group">
                    <input type="search" placeholder="Search" class="form-control">
                </div>
                <button type="submit" class="btn btn-success">Search</button>
            </form>
        </div>
    </div>
</nav>


<div class="container">
    <form th:action="@{/directors/save}" th:object="${director}" method="POST">

        <input type="text" placeholder="姓名" th:field="${director.directorname}">
        <input type="text" placeholder="经历" th:field="${director.opus}">
        <input type="text" placeholder="家庭" th:field="${director.born}">
        <button type="submit">新建导演</button>
    </form>

</div>







</body>
</html>